arm: socfpga: misc: Add proper ethernet initialization
authorPavel Machek <[email protected]>
Mon, 8 Sep 2014 12:08:45 +0000 (14:08 +0200)
committerMarek Vasut <[email protected]>
Mon, 6 Oct 2014 15:46:49 +0000 (17:46 +0200)
commit45d6e677106703139d2e3c10fa2d1168fb25309e
tree64af9418487eaee6ccadd98429c5b476d04cc178
parente9d6a20034788258bc5008dc2665aabe9ce28b1c
arm: socfpga: misc: Add proper ethernet initialization

Add function to initialize the EMAC blocks upon board startup.
The preprocessor guards against building on SoCFPGA-VT and against
SPL build are not needed as those are handled implicitly via both
SPL framework and the socfpga_cyclone5.h config file, which will
not define CONFIG_DESIGNWARE_ETH if building for SoCFPGA-VT.

We cannot handle two EMAC ethernet blocks yet, therefore the ifdefs.
Once there is hardware using both EMAC blocks, this ifdef will have
to go.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
Cc: Chin Liang See <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Albert Aribaud <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Pavel Machek <[email protected]>
arch/arm/cpu/armv7/socfpga/misc.c
arch/arm/include/asm/arch-socfpga/system_manager.h